#pragma once

#include "../umlmodel_global.h"

#include <memory>
#include <vector>

#include "ExecutionSpecification.h"

using std::make_shared;
using std::shared_ptr;
using std::vector;

namespace uml {
class Behavior;

/// <summary>
/// BehaviorExecutionSpecification
/// A BehaviorExecutionSpecification is a kind of ExecutionSpecification
/// representing the execution of a Behavior.
/// </summary>
class UMLMODEL_EXPORT BehaviorExecutionSpecification : public ExecutionSpecification {

public: // Constructors and destructors
    explicit BehaviorExecutionSpecification(const QString& umlType="uml::BehaviorExecutionSpecification");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// behavior getter
    /// Behavior whose execution is occurring.
    /// </summary>
    shared_ptr<Behavior> behavior() const;

    /// <summary>
    /// behavior setter
    /// Behavior whose execution is occurring.
    /// </summary>
    void setBehavior(shared_ptr<Behavior> value);

private: // Fields
    /// <summary>
    /// behavior
    /// Behavior whose execution is occurring.
    /// </summary>
    shared_ptr<Behavior> behavior_;

};

} // namespace uml
